<template>
	<view class="test-view"><web-view :src="src"></web-view></view>
</template>

<!-- 实时地图 -->
<script>
export default {
	data: function() {
		return {
			type: '',
			src: ''
		};
	},
	onLoad: function(params) {
		console.log(params.type);
		
		if (params.type == 1) {
			uni.setNavigationBarTitle({
				title: '服务条款' //这是修改后的导航栏文字
			});
			this.src = `https://nfp.y2t.com/doc/220119_fwxieyi.html`;
			// this.src = `${this.API}/app/downLoadMap?hid=` + this.hid;
		} else if (params.type == 2) {
			uni.setNavigationBarTitle({
				title: '隐私政策' //这是修改后的导航栏文字
			});
			this.src = `https://nfp.y2t.com/doc/220119_ybdxieyi.html`;
		}
		console.log(this.src);
	}
};
</script>

<style>
.test-view {
	width: 100%;
	height: 100%;
	/* display: flex; */
	flex-direction: column;
}

.t1 {
	/* display: flex; */
	justify-content: center;
	align-items: center;
	height: 300rpx;
	font-size: 24rpx;
	background-color: #ff00ff;
}
</style>
